﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {
    import Engine.Classes.*;
    import Engine.Interfaces.*;
    import Engine.Helpers.*;

	/**
	 * 表示单块的Tile
	 */
    public class SingleTileTerrain implements ITerrainMap {

        protected var m_tile:Tile = null;
        protected var m_size:IntVector2;

        public function SingleTileTerrain(_arg1:Tile, _arg2:int, _arg3:int){
            this.m_size = new IntVector2(20, 20);
            super();
            this.m_tile = _arg1;
            this.m_size.x = _arg2;
            this.m_size.y = _arg3;
        }
        public function get width():uint{
            return (this.m_size.x);
        }
        public function get height():uint{
            return (this.m_size.y);
        }
        public function tileAt(_arg1:uint, _arg2:uint):Tile{
            return (this.m_tile);
        }
        public function setTile(_arg1:uint, _arg2:uint, _arg3:Tile):void{
            this.m_tile = _arg3;
        }
        public function isPathable(_arg1:uint, _arg2:uint):Boolean{
            return (true);
        }
        public function isDirty():Boolean{
            return (false);
        }
        public function cleanDirty():void{
        }

    }
}//package Classes 
